package com.zsx.shopping.order.service;

import com.zsx.shopping.common.api.seckill.dto.SeckillOrderDto;
import com.zsx.shopping.order.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zsx.shopping.order.form.ConfirmForm;
import com.zsx.shopping.order.vo.PayStatusVO;

/**
 *
 */
public interface OrderService extends IService<Order> {

    String toTrade();

    String submitOrder(ConfirmForm confirmForm);

    void closeOrder(Long orderId);

    Byte getOrderStatus(Long orderId);

    PayStatusVO getPayStatus(String orderSn);

    void pay(String orderSn);

    void cancelOrder(String orderSn);

    void saveSeckillOrder(SeckillOrderDto seckillOrderDto);
}
